﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace aier.dataaccess.model
{
    [XrmEntity("new_sc_result", "new_sc_resultid")]
    public partial class ScreenResult:BaseModel
    {
        /// <summary>
        /// 负责人
        /// </summary>
        [XrmFieldMapping("ownerid", XrmAttributeType.EntityReference, true)]
        [XrmReferenceType("systemuser", default(string))]
        public System.Guid OwnerId { get; set; }
        /// <summary>
        /// 主键
        /// </summary>
        [XrmFieldMapping("new_sc_resultid", XrmAttributeType.UniqueIdentifier)]
        public System.Guid new_sc_resultId { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        [XrmFieldMapping("new_name", XrmAttributeType.String, true)]
        public string new_name { get; set; }

        /// <summary>
        /// 筛查id
        /// </summary>
        [XrmFieldMapping("new_scid", XrmAttributeType.EntityReference, true)]
        [XrmReferenceType("new_screen", default(string))]
        public Nullable<System.Guid> new_scid { get; set; }
        /// <summary>
        /// 筛查结果
        /// </summary>
        [XrmFieldMapping("new_result", XrmAttributeType.String, true)]
        public string new_result { get; set; }

        /// <summary>
        /// 筛查医生ID
        /// </summary>
        [XrmFieldMapping("new_doctorid", XrmAttributeType.EntityReference, true)]
        [XrmReferenceType("systemuser", default(string))]
        public Nullable<System.Guid> new_doctorid { get; set; }

        /// <summary>
        /// 类别ID
        /// </summary>
        [XrmFieldMapping("new_categoryid", XrmAttributeType.String, true)]
        public string new_categoryid { get; set; }

        /// <summary>
        /// 项目ID
        /// </summary>
        [XrmFieldMapping("new_itemid", XrmAttributeType.String, true)]
        public string new_itemid { get; set; }

        /// <summary>
        /// 内容ID
        /// </summary>
        [XrmFieldMapping("new_contentid", XrmAttributeType.String, true)]
        public string new_contentid { get; set; }

        /// <summary>
        /// 移动端筛查结果ID
        /// </summary>
        //[XrmFieldMapping("new_resultid", XrmAttributeType.String, true)]
        //public string new_resultid { get; set; }

        /// <summary>
        /// 被筛查人ID
        /// </summary>
        [XrmFieldMapping("new_customerid", XrmAttributeType.EntityReference, true)]
        [XrmReferenceType("lead", default(string))]
        public Nullable<System.Guid> new_customerid { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        [XrmFieldMapping("modifiedon", XrmAttributeType.DateTime, true)]
        public Nullable<System.DateTime> ModifiedOn { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        [XrmFieldMapping("modifiedby", XrmAttributeType.EntityReference, true)]
        [XrmReferenceType("systemuser", default(string))]
        public Nullable<System.Guid> ModifiedBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [XrmFieldMapping("createdon", XrmAttributeType.DateTime, true)]
        public Nullable<System.DateTime> Createdon { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [XrmFieldMapping("createdby", XrmAttributeType.EntityReference, true)]
        [XrmReferenceType("systemuser", default(string))]
        public Nullable<System.Guid> Createdby { get; set; }
    }
}
